package nju.software.tagmanager.pojo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 标签类别
 * @TableName category
 */
@TableName(value ="category")
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class Category implements Serializable {
    /**
     *
     */
    @TableId(value = "`id`", type = IdType.AUTO)
    private Integer id;

    /**
     * 标签类别
     */
    @TableField(value = "`name`")
    private String name;

    /**
     * 备注
     */
    @TableField(value = "`comment`")
    private String comment;

    /**
     * 创建时间
     */
    @TableField(value = "`create_time`")
    private LocalDateTime createTime;

    /**
     *
     */
    @TableField(value = "`create_user_id`")
    private Integer createUserId;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}